package com.ethink.warehouse.common.entity;

import com.baomidou.mybatisplus.annotation.TableName;
import com.ethink.framework.common.db.SuperEntity;
import lombok.Data;

import java.math.BigDecimal;
import java.util.Date;

/**
 * 库存矫正明细 数据库实体
 *
 * @author default
 * @date 2023-01-12
 */
@Data
@TableName("t_mate_inventory_adjust_log_detail")
public class MateInventoryAdjustLogDetail extends SuperEntity {

    public static final String ORDER_NO ="order_no";

    public static final String BEFORE_MATE_INVENTORY_ID ="before_mate_inventory_id";

    public static final String MATCH_MATE_INVENTORY_ID ="match_mate_inventory_id";

    public static final String AFTER_MATE_INVENTORY_ID ="after_mate_inventory_id";

    public static final String ADJUST_QTY ="adjust_qty";

    public static final String ADJUST_PRODUCE_CODE ="adjust_produce_code";

    public static final String ADJUST_COST_PRICE ="adjust_cost_price";

    public static final String ADJUST_PURCHASE_CODE ="adjust_purchase_code";

    public static final String ADJUST_PURCHASE_ORDER_NO ="adjust_purchase_order_no";

    public static final String ADJUST_PURCHASE_DETAIL_ORDER_NO ="adjust_purchase_detail_order_no";

    public static final String ADJUST_COUNTRY_OF_ORIGIN ="adjust_country_of_origin";

    public static final String ADJUST_PRODUCT_DATE ="adjust_product_date";

    public static final String ADJUST_EXPIRE_DATE ="adjust_expire_date";


    /** 矫正单号 */
    private String orderNo;

    /** 调整前批次库存ID */
    private Long beforeMateInventoryId;

    /** 调整后批次库存ID */
    private Long afterMateInventoryId;

    /** 匹配的采购批次 */
    private String matchPurchaseCode;

    /** 调整数量 */
    private Integer adjustQty;

    /** 调整生产批次 */
    private String adjustProduceCode;

    /** 成本单价 */
    private BigDecimal adjustCostPrice;

    /** 采购批次 */
    private String adjustPurchaseCode;

    /** 采购单号 */
    private String adjustPurchaseOrderNo;

    /** 采购详单号 */
    private String adjustPurchaseDetailOrderNo;

    /** 原产国 */
    private String adjustCountryOfOrigin;

    /** 商品生产日期 */
    private Date adjustProductDate;

    /** 商品过期日期 */
    private Date adjustExpireDate;

    /** 库0时间 */
    private Date adjustRkTime;

    /** 原始单号 */
    private String sourceOrderNo;

    /** 原始详单号 */
    private String sourceDetailOrderNo;
}
